const http = require('http')

http.createServer((request, response) => {
    console.log(request.headers)
}).listen(8000, () => {
    console.log('启动成功！')
})

